package com.xhs.main.controller.xsb;

import com.xhs.main.entity.xsb.Client;
import com.xhs.main.service.xsb.impl.XsbClientServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hjr
 * @create 2020-10-16-下午 2:04
 */

@RestController
public class ClientController {

    @Autowired
    XsbClientServiceImpl xsbClientServiceImpl;


    @RequestMapping("/addClient")
    public void addPlan( Client client){
        System.out.println(client);
        if(client!=null){
            xsbClientServiceImpl.addClient(client);
        }
    }

}
